<!doctype html> 
<html> 
<head> 
    <meta charset="utf-8"> 
    <title></title> 

    <style type="text/css">
.m{
	width: 100px;height: 100px;background: black;
}

    </style>
    <script type="text/javascript" src='jquery-1.9.1.min.js'></script>
</head>
<div></div>
<body>
<script type="text/javascript">

$.fn.extend({
	'yangwenhao':function(sClass){
		//this[0].className = 'm';
		$(this).addClass(sClass);
	}
});


$('div').yangwenhao('m');

//$('div').addClass('m');
	/*
	$.extend({
		'sunmin':function(){
			alert(1);
		},
		'ssss':function(){
			return Math.random();
		},
		'bodyMax':function(){
			return {w:innerWidth,h:innerHeight}
		}
	});
*/

//	alert($.bodyMax().h);
</script>
</body>
</html>